public class test {
    public static void main(String[] args) {
        BinaryTree treeNode = new BinaryTree();
        BinaryTree.TreeNode root = treeNode.creatree();

        int a = treeNode.size1(root);
        System.out.println(a);//7
        int b = treeNode.size2(root);
        System.out.println(b);//7

        treeNode.getLeafNodeCount1(root);
        System.out.println(treeNode.LeafCount);//4

        int c = treeNode.getLeafNodeCount2(root);
        System.out.println(c);//4

        int d = treeNode.getKLeveNodeCount(root,3);
        System.out.println(d);
        int d1 = treeNode.getKLeveNodeCount(root,2);
        System.out.println(d1);
    }
}
